package com.sskj.mine.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;
import com.sskj.mine.bean.MineAboutUsBean;
import com.sskj.mine.bean.SysBean;
import com.sskj.mine.http.HttpConfig;
import com.sskj.mine.ui.activity.AboutUsActivity;
import com.sskj.mine.ui.activity.MineAboutUsLxActivity;

import java.util.List;

public class MineAboutUsLxPresenter extends BasePresenter<MineAboutUsLxActivity> {

    public void getData() {
        httpService.getWebAboutUs()
                .execute(new JsonCallBack<HttpData<MineAboutUsBean>>() {
                    @Override
                    public void onSuccess(Response<HttpData<MineAboutUsBean>> response) {
                        HttpData<MineAboutUsBean> httpData = response.body();
                        if (httpData.getStatus() == HttpConfig.OK) {
                            mView.updateUi(httpData.getData());
                        }
                    }
                });
    }
}
